import request from '@/utils/request';
// 左侧树形结构
export function getTree(data) {
  return request.post('/hydrobim/damInfo/getDamInfoList', data);
}
// 数据统计
export function getDamStatistics(data) {
  return request.post(`/hydrobim/damInfo/getDamStatistics`,data)
}

      
// 面板坝基本信息 
export function getDamInfo(id) {
  return request.get(`/hydrobim/damInfo/getDamInfoBase/${id}`)
}

// 面板坝详细信息

export function getDamInfoDetail(id) {
  return request.get(`/hydrobim/damInfo/getDamInfoDetail/${id}`)
}

// 添加/修改面板坝信息
export function addDamInfoRecord(data) {
  return request.post(`/hydrobim/damInfoRecord/addDamInfoRecord`,data)
}

// 获取所有面板坝位置 
export function getAllDamInfo(data) {
  return request.post(`/hydrobim/damInfo/getAllDamInfo`,data)
}

// 获取工程项目
export function getAllProject(data) {
  return request.post(`/hydrobim/damInfo/projectPageList`,data)
}

// 获取流域或者行政区 
export function getRiverArea(type) {
  return request.get(`/hydrobim/riverArea/getRiverArea/${type}`)
}

// 导出 
export function exportDamStatistics(data) {
  return request.getBlob(`/hydrobim/damInfo/exportDamStatistics`,data)
}

// 导出基础数据

export function exportBasic(data) {
  return request.getBlob(`/hydrobim/damInfo/exportDamInfo`,data)
}

